import axios from './middleware'

export default {
	fetchDomainList (params) {
    let uri = '/customer/domain/list';  
    let config = {
      params
    }
		return axios.get(uri, config);
	}, 
	createDomain (params) {
    let uri = '/customer/domain/add';   
		return axios.post(uri, params);
	},  
	modifyDomain (params) {
    let uri = '/customer/domain/edit';   
		return axios.post(uri, params);
	},  
	deleteDomain (params) {
    let uri = '/customer/domain/del';   
    let config = {
      params
    }
		return axios.get(uri, params);
  },    
	fetchAllCustomerList () {
    let uri = '/customer/list?page=1&pagesize=100000&orderby=id&order=desc';   
		return axios.get(uri);
	},
} 
